import {get, post} from '../request'

// 获取所有图书分类列表
export const getBookTypeAll = params => {
	return get({
		url: '/bookCategory/all',
        params,
    })
}

// 获取分类列表
export const getBookCategoryByPage = params => {
    return post({
		url: '/bookCategory/page',
        params,
		loading: true
    })
}
// 新增图书分类

export const addBookCategory = params => {
    return post({
		url: '/bookCategory/add',
        params,
		loading: true
    })
}
// 删除图书分类
export const deleteBookCategory = params => {
    return post({
		url: '/bookCategory/delete',
        params,
		loading: true
    })
}
// 修改图书分类
export const updateBookCategory = params => {
    return post({
		url: '/bookCategory/update',
        params,
		loading: true
    })
}